package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.MdmHelpMsg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MdmHelpMsgRepository extends JpaRepository<MdmHelpMsg, Long>, JpaSpecificationExecutor {

    List<MdmHelpMsg> findByMdmHelpActivityIdAndCreateUnionId(Long mdmHelpActivityId, String createUnionId);


    MdmHelpMsg findByMdmHelpActivityIdAndCreateUnionIdAndHelpUnionId(Long mdmHelpActivityId, String createUnionId, String helpUnionId);
}
